package com.ckerchina.admin.ckadmin.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.ckerchina.admin.ckadmin.cache.MemcachedService;
import com.ckerchina.admin.ckadmin.domain.ShareFriendQRCode;

@Repository
public class ShareFriendQRCodeDAO extends AbstractDao<ShareFriendQRCode, Long>{

	@Autowired
	private MemcachedService memcachedService;

	public ShareFriendQRCode find() {
		List<ShareFriendQRCode> list = super.findAll();
		ShareFriendQRCode shareFriendQRCode = list.size() > 0 ? list.get(0) : null;
		return shareFriendQRCode;
	}
}
